$execute as @s[tag=!VoidShop] run return run execute as @n[tag=VoidShop,type=marker] run function vs:system/game_ctrol/void_shop/slot/read_items/start {start_index:$(start_index)}

execute unless data entity @s data.shopContents run data modify entity @s data.shopContents set from storage vs:system shopContents

execute as @e[tag=VoidShop.slot,distance=..10,type=item_display] at @s run function vs:system/game_ctrol/void_shop/slot/reset

$data modify storage vs:system temp.VS.index set value $(start_index)
data modify storage vs:system temp.VS.slot set value 0

function vs:system/game_ctrol/void_shop/slot/read_items/read with storage vs:system temp.VS

data remove storage vs:system temp.VS

execute as @e[tag=VoidShop.slotText,distance=..10,type=text_display] at @s run function vs:system/game_ctrol/void_shop/slot/text/update_text